﻿$(function () {
    PostApi("/user/allmanager",{}, function (result) {
        console.log(result);
        if (result.code == 0) {
            $("select#manager_id").css("display", "block");
            if (result.data != undefined && result.data.length > 0) {
                $.each(result.data, function (index, value) {
                    console.log(value);
                    $("select#manager_id").append($("<option/>", {
                        value: value.id,
                        text: value.name
                    }));
                });
            }
        } else if (result.code == 400) {

        }
    }, function () { });
});